package com.feidee.data.report.model;

import java.util.Map;

public class BuildResultTblModel {

	private String applysqlname; // 报表名称
	private Map<String, ColumnInfoModel> mysqlColumn; // Mysql表列信息
	private String applyname; // 报表中文名称

	public String getApplysqlname() {
		return applysqlname;
	}

	public void setApplysqlname(String applysqlname) {
		this.applysqlname = applysqlname;
	}

	public Map<String, ColumnInfoModel> getMysqlColumn() {
		return mysqlColumn;
	}

	public void setMysqlColumn(Map<String, ColumnInfoModel> mysqlColumn) {
		this.mysqlColumn = mysqlColumn;
	}

	public String getApplyname() {
		return applyname;
	}

	public void setApplyname(String applyname) {
		this.applyname = applyname;
	}

	@Override
	public String toString() {
		return "BuildResultTblModel{" +
				"applysqlname='" + applysqlname + '\'' +
				", mysqlColumn=" + mysqlColumn +
				", applyname='" + applyname + '\'' +
				'}';
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;

		BuildResultTblModel that = (BuildResultTblModel) o;

		if (applysqlname != null ? !applysqlname.equals(that.applysqlname) : that.applysqlname != null) return false;
		if (mysqlColumn != null ? !mysqlColumn.equals(that.mysqlColumn) : that.mysqlColumn != null) return false;
		return applyname != null ? applyname.equals(that.applyname) : that.applyname == null;

	}

	@Override
	public int hashCode() {
		int result = applysqlname != null ? applysqlname.hashCode() : 0;
		result = 31 * result + (mysqlColumn != null ? mysqlColumn.hashCode() : 0);
		result = 31 * result + (applyname != null ? applyname.hashCode() : 0);
		return result;
	}

}
